package com.huaiwei.usmManager.modules.usm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huaiwei.usmManager.common.utils.PageUtils;
import com.huaiwei.usmManager.modules.usm.entity.ResourceEntity;
import com.huaiwei.usmManager.modules.usm.entity.ShopEntity;

import java.util.List;
import java.util.Map;

public interface ShopService extends IService<ShopEntity> {

    /*分页查询*/
    PageUtils queryPage(Map<String,Object> params);

    /*添加或修改店铺*/
    void insertOrUpdate(ShopEntity shopEntity);

    /*根据ID获取店铺*/
    ShopEntity getInfoByShopId(Integer shopId);

    /*删除店铺*/
    void deleteInfo(Integer shopId);

    /*判断展示柜上是否还有商品*/
    boolean findCabinetInShopByShopId(int shopId);

    /*根据店铺Id查询对应resourceList*/
    List<ResourceEntity> getResourceListByShopId(Integer shopId);

    /*根据店铺id来查询属于该店铺的所有展示柜*/
    PageUtils getCabinetListByShopId(Integer shopId,Map<String,Object> params);

     /*展示柜所需的方法*/
    /*获取所有商铺*/
    List<ShopEntity>  getAllShop();
}
